/**
 * 
 */
package org.wadael.waverobotfrmwrk.examples.modify;

import org.wadael.waverobotfrmwrk.simple.BlipModifierRobot;

/**
 * Example robot that adds RTFM!! after each question mark.
 * It assumes there is a manual for the conversation's themes.
 * 
 * @author jerome baton : Wadael, http://blog.wadael.org
 */
@SuppressWarnings("serial")
public class RTFMRobotServlet extends BlipModifierRobot {
	@Override
	protected String modifyBlipText(String actualText)  {
		if(actualText.indexOf("?") == -1)
			return null;
		else {
			return actualText.replaceAll("?", "? (RTFM!!") ;
		}
	}
}
